/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.sdgakj.repository;

import com.sdgakj.entity.OrderPay;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface OrderPayDao extends PagingAndSortingRepository<OrderPay, Long>,JpaSpecificationExecutor<OrderPay> {

    @Query(value = "select * from f_order_pay o where o.order_id = ?1 ", nativeQuery = true)
    OrderPay findByOrderId(Long orderId);
}
